home *** CD-ROM | disk | FTP | other *** search
/ GORO 2 / GORO 2.iso / pc / data / index.dir / 00006_Script_6 < prev    next >
Text File  |  1996-10-19  |  554b  |  20 lines

  1. on moveBtn
  2.   
  3.   put the locH of sprite clickOn () into btnH
  4.   put the locV of sprite clickOn () into btnV
  5.   repeat while the stillDown
  6.     if rollOver (clickOn ( ) ) then
  7.       set the locH of sprite clickOn () to btnH +1
  8.       set the locV of sprite clickOn () to btnV +1
  9.     else
  10.       set the locH of sprite clickOn () to btnH
  11.       set the locV of sprite clickOn () to btnV
  12.     end if
  13.     updateStage
  14.   end repeat
  15.   set the locH of sprite clickOn () to btnH
  16.   set the locV of sprite clickOn () to btnV
  17.   updateStage
  18.   
  19. end moveBtn
  20.